package com.ytsp.ybl.serviceImpl;

import com.ytsp.ybl.dao.UserInfoMapper;
import com.ytsp.ybl.model.UserInfo;
import com.ytsp.ybl.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by HUJUN on 2016/8/29.
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;
    @Override
    public UserInfo getUserInfoByUserId(Integer userId) {
        return userInfoMapper.selectByPrimaryKey(userId);
    }
}
